<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class View extends RM_Controller {

	/**
	 * JSON
	 */
	public function json(){

		$key = isset($_GET["key"]) ? $_GET["key"] : "";
		$hkey = isset($_GET["hkey"]) ? $_GET["hkey"] : "";
		$i = isset($_GET["i"]) ? intval($_GET["i"]) : -1;

		if(empty($key)){
			exit("缺少参数key");
		}

		$redis = $this->reids;

		$data = [
			'redis' => $redis,
			'key' => $key,
			'$hkey' => $hkey,
			'i' => $i,
			//'redis' => $this->redis,
		];

		$this->load->view('view/json', $data);

	}

}
